<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="./bigbang.js"></script>
<script type="text/javascript">
function play(index){
	alert(choises[index].name);
	var romd=Math.floor(Math.random()*100)%5;
	alert(choises[romd].name);
	var result=choises[index].compare(choises[romd]);
	if(result==0)
	alert("再来一次");
	if(result==1)
		alert("你赢了");
	if(result==-1)
		alert("你输了");
}
</script>
<title>Big Bang</title>
</head>
<body>
<a href="#" onclick="play(0)">rock</a><br/>
<a href="#" onclick="play(1)">paper</a><br/>
<a href="#" onclick="play(2)">scissors</a><br/>
<a href="#" onclick="play(3)">lizard</a><br/>
<a href="#" onclick="play(4)">spock</a><br/>
</body>
</html>